<!-- templates/generate_image.html -->
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>生成图像 - 花艺AI测试应用</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
    <style>
        body { padding-top: 2rem; }
        .header { margin-bottom: 2rem; }
        .form-container { max-width: 800px; margin: 0 auto; }
    </style>
</head>
<body>
    <div class="container">
        <div class="header text-center">
            <h1>花艺AI测试应用</h1>
            <p class="lead">生成花艺设计图像</p>
            <nav class="nav justify-content-center">
                <a class="nav-link" href="/">首页</a>
                <a class="nav-link" href="/upload">上传知识</a>
                <a class="nav-link" href="/image">生成图像</a>
                <a class="nav-link" href="/status">系统状态</a>
            </nav>
        </div>

        <div class="form-container">
            <div class="card">
                <div class="card-header bg-purple text-white" style="background-color: #6f42c1;">
                    <h5 class="mb-0">生成花艺图像</h5>
                </div>
                <div class="card-body">
                    <form action="/image" method="post">
                        <div class="mb-3">
                            <label for="prompt" class="form-label">描述你想要的花艺设计:</label>
                            <textarea class="form-control" id="prompt" name="prompt" rows="3" required></textarea>
                        </div>
                        <div class="mb-3">
                            <label for="style" class="form-label">选择图像风格:</label>
                            <select class="form-select" id="style" name="style">
                                <option value="realistic">写实风格</option>
                                <option value="watercolor">水彩风格</option>
                                <option value="sketch">素描风格</option>
                                <option value="modern">现代风格</option>
                                <option value="traditional">传统风格</option>
                            </select>
                        </div>
                        <button type="submit" class="btn btn-primary">生成图像</button>
                    </form>
                </div>
                <div class="card-footer text-muted">
                    示例: "一束粉红色和白色的玫瑰与满天星", "现代风格的东方兰花与竹子的插花"
                </div>
            </div>
        </div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>